import {
  wxRequest
} from '../../utils/server.js';
const _wxRequest = new wxRequest();
const app = getApp()
Page({
  data: {
    imgUrl: app.globalData.imgUrl,
    uploadUrl: wx.getStorageSync('uploadUrl'),
    id:''
  },


  onLoad: function(options){
    if (options.id){
      this.setData({
        id:options.id
      })
    }
 }, 

  //返回首页
  goHome: function() {
    wx.switchTab({
      url: '/pages/index/index',
    })
  },

  //订单详情
  odrDetail: function() { 
    wx.navigateTo({
      url: '/pages/order/detail?id='+this.data.id,
    })
  }



})